package 线程课后习题;

class MyThread extends Thread {
	
	@Override
	public void run() {
		for (int i = 1; i <= 20; i++) {
			System.out.println(i + ".你好，来自线程" + Thread.currentThread().getName());
		}
	}
}

public class Test {
	public static void main(String[] args) {
		MyThread mt = new MyThread();
		MyThread mt2 = new MyThread();
		mt.start();
		mt2.start();
	}
}
